﻿using System;
using System.Collections.Generic;
using System.Web;
using LLFM.CAT.Config;
using System.Web.UI;
using System.Configuration;

/// <summary>
///PageBase 的摘要说明
/// </summary>
public class PageBase : System.Web.UI.Page
{
    private readonly string SessionKey = ConfigurationManager.AppSettings["loginkey"].ToString();
	public PageBase()
	{
	}

    protected bool IsLogin() 
    {
        return Session[SessionKey] == null;
    }

    protected void SetSession(string value) 
    {
        Session[SessionKey] = value;
    }

    protected string GetSession()
    {
        return Session[SessionKey].ToString();
    }

    protected void DelSession() 
    {
        Session[SessionKey] = null;
    }
}